﻿<%@ Page Language="VB" MasterPageFile="~/Public/MasterPage.master" AutoEventWireup="false" CodeFile="Download.aspx.vb" Inherits="Public_Download" %>

<%@ Register Namespace="My" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table id="tb" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td align="left">
                <asp:GridView id="gv" CellPadding="5" runat="server" BorderWidth="0px" meta:resourcekey="gv" SkinID="pager" DataSourceID="gv_DS" DataKeyNames="ParameterType,ParameterName" AutoGenerateColumns="False">
                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                <RowStyle Height="30px"/>
                <Columns>
                    <asp:TemplateField HeaderText="NO" InsertVisible="False">
                        <ItemTemplate>
                             <%#gv.PageIndex * gv.PageSize + gv.Rows.Count + 1%>                             
                        
                        </ItemTemplate>
                        <ItemStyle horizontalalign="Center" Font-Size="12pt"></ItemStyle>
                        <HeaderStyle Font-Bold="True" Font-Size="12pt" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Text" SortExpression="Text" meta:resourceKey="gvText">
                        <ItemTemplate>
                             <asp:Label ID="lblText" Font-Size="12pt" runat="server" Text='<%# Bind("ParameterText") %>'></asp:Label>      
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="True" Font-Size="12pt" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Value" SortExpression="Value" meta:resourceKey="gvValue">
                        <ItemTemplate>
                             <asp:HyperLink runat="server" ID="hlinkValue" Text='<%# Bind("ParameterValue") %>'></asp:HyperLink>
                        
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="True" Font-Size="12pt" />
                        <ItemStyle Font-Size="12pt" />
                    </asp:TemplateField>
                </Columns>
                </asp:GridView> 

                <asp:SqlDataSource id="gv_DS" runat="server" 
                SelectCommand="SELECT * FROM [FD_SystemParameter] where ParameterType='Description' and ParameterName='FilePath' and ParameterValue in('FDDSManual','Location','Picture') and Active='Y'"  ConnectionString="<%$ ConnectionStrings:connStr %>">
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

